//-----------------------------------------------------------------------------------
#include "CMyComboBoxPlugin.h"
//-----------------------------------------------------------------------------------
CMyComboBoxPlugin::CMyComboBoxPlugin(QObject *parent) : QObject(parent)
{
	initialized=false;
}
//-----------------------------------------------------------------------------------
QString CMyComboBoxPlugin::domXml() const
{
	return "<widget class=\"CMyComboBox\" name=\"myComboBox\">\n"
			" <property name=\"geometry\">\n"
			"  <rect>\n"
			"   <x>0</x>\n"
			"   <y>0</y>\n"
			"   <width>150</width>\n"
			"   <height>24</height>\n"
			"  </rect>\n"
			" </property>\n"
			"</widget>\n";
}
//-----------------------------------------------------------------------------------
QWidget *CMyComboBoxPlugin::createWidget(QWidget *parent)
{
	return new CMyComboBox(parent);
}
//-----------------------------------------------------------------------------------
void CMyComboBoxPlugin::initialize(QDesignerFormEditorInterface *)
{
	if (initialized)
		return;

	initialized = true;
}
//-----------------------------------------------------------------------------------


